/* eslint-disable @typescript-eslint/no-explicit-any */
import { App } from 'vue';
import { registerControlProvider } from '@ibiz-template/runtime';
import { EhrSearchBarControl } from './ehr-search-bar';
import { EhrSearchBarProvider } from './ehr-search-bar.provider';

export default {
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
  install(app: App) {
    app.component(EhrSearchBarControl.name!, EhrSearchBarControl);
    registerControlProvider(
      'CUSTOM_FILTER_SEARCHBAR',
      () => new EhrSearchBarProvider(),
    );
  },
};